package cn.tx.sboot2.controller;/*
 *
 * @author 陈粒
 * @version 创建时间：2021/8/15 16:43
 */
//第四步
import cn.tx.sboot2.service.CarServiceimpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController//包含IOC
public class CarController {
    @Autowired//DI
    CarServiceimpl csi;
    @RequestMapping("car")
    public Object get() {
        return csi.get();
    }
}
